package com.fifth.emp.service;

import com.fifth.common.pojo.dto.CommonResult;
import com.fifth.common.pojo.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fifth.emp.vo.RoleVo;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 徐志豪
 * @since 2022-09-02
 */
public interface IRoleService extends IService<Role> {

    CommonResult getRole(Integer currentPage, Integer pageSize,Role role);

    CommonResult upStatus(String id,String status);

    CommonResult addRole(Role role);

    CommonResult deleteRole(String id);

    CommonResult selectRoleAll();

    CommonResult selectPermission(String roleId);

    CommonResult updateRole(Role role);
}
